package com.explorex.infra.puma.gateway.netty.ws.consts;

import com.explorex.infra.puma.gateway.netty.common.UserKey;
import io.netty.util.AttributeKey;

import java.util.Set;

/**
 * @author: JacceYang
 * @createTime: 2022/07/20 4:51 下午
 * @description: channel 相关的key
 */
public interface ChannelConst {

    /**
     * ===============================  AttributeKey define ===========================
     **/
    AttributeKey<UserKey> USER_KEY = AttributeKey.valueOf("user.key");

    AttributeKey<String> TOPIC_KEY = AttributeKey.valueOf("topic.key");

    AttributeKey<String> AUTH_STATUS_KEY = AttributeKey.valueOf("auth.status");

    AttributeKey<String> KICK_OUT_KEY = AttributeKey.valueOf("kick.out.key");

    AttributeKey<String> SHARE_KEY = AttributeKey.valueOf("shareKey");
    AttributeKey<Set<String>> EVENT_ID_LIST = AttributeKey.valueOf("event.id.list");


    /**
     * ========================== AttributeKey value define ======================
     **/
}
